package com.leo.base_project.activity.splash;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;

import com.leo.base_project.R;
import com.leo.base_project.Utils.LogUtils;
import com.leo.base_project.Utils.UIUtils;
import com.leo.base_project.activity.base.BaseActivityX;
import com.leo.base_project.activity.main.MainTestActivity;

@SuppressLint("NonConstantResourceId")
public class SplashActivity extends BaseActivityX {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        skip(null);
    }


    public void skip(View view) {
        LogUtils.e("错误");
        startActivity(new Intent(this, MainTestActivity.class));
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        UIUtils.toast(resultCode + "");
    }
}